/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.opgea.qms.domain.model;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author Ramesh
 */
@Embeddable
public class Name implements Serializable {
    
    private String firstName;
    private String middleInitial;
    private String lastName;

    public Name(){}
    
    public Name(String firstName, String middleInitial, String lastName) {
        this.firstName = firstName;
        this.middleInitial = middleInitial;
        this.lastName = lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getMiddleInitial() {
        return middleInitial;
    }

    public void setMiddleInitial(String middleInitial) {
        this.middleInitial = middleInitial;
    }

    @Override
    public String toString() {
        return "Name{" + "firstName=" + firstName + ", middleInitial=" + middleInitial + ", lastName=" + lastName + '}';
    }
    
    
    
}
